import { http } from '@/utils/layoutService'

const API = {
  getAllPath: '/path/allPath',
  postPathList: '/path/postPathList',
}

export interface GetPathInter {
  parentId: number | undefined
  pageSize: number | undefined
  current: number | undefined
  keyword: string | undefined
}

export const getAllPath = () => http.get(API.getAllPath)
export const postPathList = (data: { data: GetPathInter }) =>
  http.post(API.postPathList, { params: data })
